package com.itheima.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.URL;


import java.time.LocalDateTime;

@Data
public class Adopt {
    private Integer id;//主键ID
    @NotNull
    private Integer userId;
    @NotNull
    private Integer petId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;//更新时间
    private String status;

    private String username;
    @URL
    private String petImg;
    private String petType;

}
